package cmcc.dbi.execJdbcUtil;

import java.util.HashMap;
import java.util.Map;

public class JdbcFactory {
    private static final Map<String, JdbcUtil> map = new HashMap<>();

    static {
        map.put("MySQL", new MysqlOfJdbcUtil());
        map.put("PanweiDB", new getCmpResJdbcUtil());
        map.put("PostgreSQL", new getCmpResJdbcUtil());
        map.put("KingBase",new getCmpResJdbcUtil());
        map.put("AntDB",new getCmpResJdbcUtil());
        map.put("GoldenDB", new GoldendbJdbcUtil());
        map.put("GreatDB", new GreatdbJdbcUtil());
        map.put("Oracle", new OracleJdbcUtil());
        map.put("OceanBase", new OceanBaseJdbcUtil());
    }

    public JdbcUtil getJdbcUtil(String dbType){
        return map.get(dbType);
    }
}
